< previous page page_332 next page >

Page 332
12181-0332a.gif
Figure 12.16.
Adding a Child command to display the order detail for each order.
When adding another Child command, you would move the order detail to a new group header and then move the order detail to the Details section. As you can see, you can add as many Child commands and Header/Footer sections as you need to create a specific report.
Adding Functionality
The Data Report contains its own set of controls, among them is the Function control, which allows you to display data calculated at runtime by using a built-in function as the report is generated. An example is shown in Figure 12.17, where the Function control is used to display the total order value for each customer. Adding a function to a report requires you to draw a Function control in an appropriate Footer section of the Data Report. Then, you would set the DataMember and DataField properties to the field you want the function to be performed on.

 
< previous page page_332 next page >

If you like this book, buy it!